%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe %~dp0MyService.exe
Net Start MyService
sc config MyService start= auto
pause